
--by Chris Mackey

--pieces
--body
local head = piece "head"
local neck = piece "neck"
local torso = piece "torso"
local pelvis = piece "pelvis"
local kilt = piece "kilt"


--left side
local l_arm = piece "l_arm"
local l_fore = piece "l_fore"
local l_hand = piece "l_hand"
local l_thigh = piece "l_thigh"
local l_shin = piece "l_shin"
local l_foot = piece "l_foot"

--right side
local r_arm = piece "r_arm"
local r_fore = piece "r_fore"
local r_hand = piece "r_hand"
local r_thigh = piece "r_thigh"
local r_shin = piece "r_shin"
local r_foot = piece "r_foot"

function Attack()
	Turn( torso, y_axis, 1, 9 )
	Turn( head, y_axis, -1, 9 )
	
	Turn( r_arm, x_axis, -1.5, 6 )
	Turn( r_arm, y_axis, .3, 6 )
	Turn( r_fore, x_axis, 0, 6 )
	Turn( r_fore, y_axis, -3, 9 )
	Turn( r_hand, x_axis, 1, 6 )
	Turn( r_hand, y_axis, 1, 6 )
	
	Turn( l_arm, x_axis, 0, 6 )
	Turn( l_arm, y_axis, 1, 5 )
	Turn( l_arm, z_axis, 1, 6 )
	Turn( l_fore, x_axis, -0.5, 6 )
	Turn( l_fore, z_axis, 0, 6 )
	
	Move( pelvis, y_axis, -2, 20 )
	Move( pelvis, z_axis, 10, 50 )
	
	Turn( r_thigh, x_axis, -.6, 9 )
	Turn( r_shin, x_axis, .6, 9 )
	Turn( kilt, y_axis, .7, 9 )
	
	Turn( l_thigh, x_axis, .4, 2 )
	Turn( l_shin, y_axis, 1, 5 )
end

function Ready()
	Turn( torso, y_axis, -1, 1.7 )
	Turn( head, y_axis, 1, 2 )
	
	Turn( r_arm, x_axis, -2, 3 )
	Turn( r_arm, y_axis, -1.5, 3 )
	Turn( r_fore, x_axis, -1.7, 1.5 )
	Turn( r_fore, y_axis, 0, 3 )
	Turn( r_hand, x_axis, 0, 3 )
	Turn( r_hand, y_axis, -1, 2 )
	
	Turn( l_arm, x_axis, -1.5, 2 )
	Turn( l_arm, y_axis, 1.1, 2 )
	Turn( l_arm, z_axis, 0, 2 )
	Turn( l_fore, x_axis, 0, 1 )
	Turn( l_fore, z_axis, -1.5, 1 )
	
	Move( pelvis, y_axis, 0, 10 )
	Move( pelvis, z_axis, 0, 20 )
	
	Turn( r_thigh, x_axis, 0, 1 )
	Turn( r_shin, x_axis, 0, 1 )
	Turn( kilt, x_axis, 0, 1 )
	Turn( kilt, y_axis, 0, 1 )
	Turn( kilt, z_axis, 0, 1 )
	
	Turn( l_thigh, x_axis, 0, 1 )
	Turn( l_shin, x_axis, 0, 1 )
	Turn( l_shin, y_axis, 0, 1.5 )
end

